#pragma once
class Entity
{
public:
	Entity(void);
	~Entity(void);

	CString id;
	
	long startHour;
	long startMin;
	long startSec;
	long startFrame;

	long endHour;
	long endMin;
	long endSec;
	long endFrame;

	CString subtitle;

	CString getStartTimeString();
	CString getEndTimeString();

	CString getStartTimeStringExport(long frameRate);
	CString getEndTimeStringExport(long frameRate);

	void setStartTimeString(CString hour,CString min,CString sec,CString frame);
	void setEndTimeString(CString hour,CString min,CString sec,CString frame);

	long getStartHour();
	long getStartMin();
	long getStartSec();
	long getStartFrame();
	long getStartMs(long frameRate);

	long getEndHour();
	long getEndMin();
	long getEndSec();
	long getEndFrame();
	long getEndMs(long frameRate);

	bool operator==(const Entity& entity);
};

